package com.liangzhong.modules.fameHall.command
{
	import com.liangzhong.proxy.fameHall.FameHallProxy;
	import com.liangzhong.proxyconstant.fameHall.FameHallProxyConstant;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class FameHallCommand extends SimpleCommand
	{
		public function FameHallCommand()
		{
			super();
		}
		override public function execute(notification:INotification):void
		{
			var proxy:FameHallProxy = facade.retrieveProxy(FameHallProxy.PROXYNAME) as FameHallProxy;
			switch(notification.getName())
			{
				case FameHallProxyConstant.FAMEHALLINFO:
					proxy.requestFameHallInfo();
					break;
				case FameHallProxyConstant.PUTPLAYER:
					proxy.requestPutPlayer(notification.getBody());
					break;
				case FameHallProxyConstant.GETAWARD:
					proxy.requestGetAward(notification.getBody());
					break;
			}
		}
	}
}